import { createApp } from 'vue'
import App from './App.vue'
import { store, key } from './store'
import router from './router/index'
import { setVant } from './config/setVant'
import { i18n } from '@/i18n/index'
import { directive } from '@/utils/directive'
import mitt from 'mitt'
import { setupCustomComponents } from '@/plugins'
import 'vant/lib/index.css'
import './theme/index.scss'
const app = createApp(App)
app
  .use(router)
  .use(store, key)
  .use(setVant)
  .use(i18n)
  .use(setupCustomComponents)
  .use(directive)
  .mount('#app')

app.config.globalProperties.mitt = mitt()
